package com.atguigu.edusta;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableFeignClients//远程调用所用
@SpringBootApplication
@EnableDiscoveryClient //nacos注册所用
@ComponentScan(basePackages = {"com.atguigu"})
@MapperScan("com/atguigu/edusta/mapper")
@EnableScheduling
public class StaCenApplication {
    public static void main(String[] args){
        SpringApplication.run(StaCenApplication.class,args);
    }
}
